<?php
include "../inc/item_functions.inc.php";
$item_id = 7; //$_GET["item_id"];
$item = get_item_info($item_id);
?>

<html>
  <head>
<title>Matrox G200 MMS</title>
<meta charset="utf-8">
</head>
<body>
<h1>Matrox G200 MMS</h1>
<form>
  <table>
    <tr>
      <td>Tên:</td>
      <td><input type="text" name="product_name" value="<?php echo $item['item_name'] ?>" ></td>
    </tr>
    <tr><td>Trạng thái:</td>
      <td>
	<input  type="checkbox" name="status" value="available" <?php echo ($item['item_avail']==1)?'checked':''?> >
	<label for="available">Available</label>
      </td>
    </tr>
    <tr>
      <td>Giá:</td>
      <td><input type="text" name="product_price" value="<?php echo $item['item_price'] ?>"></td>
    </tr>
    <tr>
      <td>Miêu tả:</td>
      <td><textarea  rows="9" cols="9" name="product_description"><?php echo $item['item_desc']; ?>
      </textarea></td>
    </tr>
    <tr>
      <td>Trong kho:</td>
      <td><input type="text" name="product_quantity" value="<?php echo $item['item_instore'] ?>"></td>
    </tr>
    <tr>
      <td>Ảnh:</td>
      <td><input type="text" name="product_image"></td>
      <!-- + Add Large Image -->
    </tr>
  </table>
  <input type="submit" value="Lưu">
  </form>
<address>
<a href="mailto:thien@localhost.localdomain">Lai Đức Thiện</a>
</address>
</body>
</html>
